package com.rlz.framemm.mode.observer

import com.rlz.base.design.observer.Observer

/**
 * Created by RLZ
 * on 2021/10/25
 *
 */
class User(var name: String) : Observer<String> {

    var mMessage: String = ""

    override fun update(data: String) {
        mMessage = data
        read()
    }

    private fun read() {
        println("$name - 接收到消息: $mMessage")
    }
}